package com.tuanzi.loan.web.lazy.family;

import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import org.springframework.data.domain.Page;

import com.tuanzi.loan.vo.request.family.IcpWebIpVisitRecordSearchRequest;
import com.tuanzi.loan.vo.response.family.IcpWebIpVisitRecordSearchResponse;
import com.tuanzi.loan.business.service.family.IcpWebIpVisitRecordService;

/**
 * ICP备案网站IP访问记录 DataModel
 * @author JinRuiyang 2017/12/14 10:08:10
 */
public class IcpWebIpVisitRecordDataModel extends
        BaseLazyDataModel<IcpWebIpVisitRecordSearchRequest, IcpWebIpVisitRecordSearchResponse> {

    private IcpWebIpVisitRecordService icpwebipvisitrecordService = SpringContextHolder.getBean(IcpWebIpVisitRecordService.class);

    public IcpWebIpVisitRecordDataModel(IcpWebIpVisitRecordSearchRequest searchRequest) {
        super(searchRequest);
    }

    @Override
    protected Page<IcpWebIpVisitRecordSearchResponse> doLoad(PageSearcher<IcpWebIpVisitRecordSearchRequest> pageSearcher) {
        return icpwebipvisitrecordService.list(pageSearcher);
    }
}
